package com.fuqi.android.zhongcai.base.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.fuqi.android.zhongcai.base.ApiUrl;
import com.fuqi.android.zhongcai.base.request.result.VerifyCodeResult;
import com.fuqi.framework.network.api.AbsRequest;
import com.fuqi.framework.network.params.BaseParams;


/*
*  验证验证码接口
* */


public class VerifyCodeApi extends AbsRequest<VerifyCodeApi.VerifyCodeParams, VerifyCodeResult> {

    public VerifyCodeApi(VerifyCodeParams verifyCodeParams, Listener<VerifyCodeResult> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getVerifyCodeUrl(), verifyCodeParams, listener, errorListener, VerifyCodeResult.class);
    }

    public static class VerifyCodeParams extends BaseParams {

        public VerifyCodeParams(String phone, String verifyCode) {

                put("PHONE", phone);
                put("VERIFYCODE", verifyCode);

        }
    }


}
